home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 8_6.lha / 8_6 / 8_6_setbuf.c < prev    next >
Text File  |  1993-08-08  |  361b  |  16 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / Supply a character array for a buffer.
  6. / inline
  7. treambuf *
  8.    streambuf::setbuf(char *buf, int len, int startlen)
  9.  
  10.    base = gptr = buf;
  11.    pptr = buf + startlen;
  12.    eptr = base + len;
  13.    alloc = 0;
  14.    return this;
  15.  
  16.